package com.hhh.tools.model.service

import com.hhh.tools.model.Network
import com.hhh.tools.model.entity.ApiResponse
import com.hhh.tools.model.entity.GoodsInfoBean
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface CommodityService {

    @FormUrlEncoded
    @POST("goods/get_list")
    suspend fun loadGoodsList(@FieldMap map: Map<String, String>): ApiResponse<List<GoodsInfoBean>>

    companion object {
        fun instance(): CommodityService {
            return Network.createService(CommodityService::class.java)
        }
    }
}